public class homework4 {
    public static void main(String[]args){
        int i1=123;
        byte b=(byte)i1;
        System.out.println("int强制类型转换为byte后的值等于"+b);
    //整型转换为浮点型；
        int intvalue=10;
        float floatValue = (float)intvalue;
        //浮点型转换为整型
        float floatvalue = 10.5f;
        int intValue =(int)floatValue;

        double ac =1.2;
        ac = (int)ac;


    }
}
